package org.example.springmvc.pojo;

import java.util.Objects;

/**
 * ClassName: Season
 * Package: org.example.springmvc.pojo
 * Description:
 *
 * @Author wanghao
 * @Create 2024-07-14 15:19
 * @Version 1.0
 */
public class Season {

    // 页面上显示的值：春 夏 秋 冬
    private String label;

    // 发送给服务器的值：1 2 3 4
    private String value;

    public Season() {
    }

    public Season(String label, String value) {
        this.label = label;
        this.value = value;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Season season = (Season) o;
        return Objects.equals(label, season.label) && Objects.equals(value, season.value);
    }

    @Override
    public int hashCode() {
        return Objects.hash(label, value);
    }
}
